﻿using System;
using System.Text;
using System.Collections;

namespace Model
{
    //---------------------------------------------------------------------------------------------
    public enum LoaiDanhMuc
    {
        None
    }

    public enum LoaiThietDat
    {
        None
    }

    public enum FormStatus
    {
        Add,
        Edit,
        View
    }

    //---------------------------------------------------------------------------------------------
    public class SPParam
    {
        public string orderColumn = "";
        public string orderExpression = "";
        public string whereExpression = "";
        public string otherParam = null;
        public object objParam = null;

        public SPParam()
        {
        }

        public SPParam(string orderColumn, string orderExpression, string whereExpression)
        {
            this.orderColumn = orderColumn;
            this.orderExpression = orderExpression;

            if (whereExpression == null)
                this.whereExpression = "";
            else
                this.whereExpression = whereExpression;
        }
    }

    //---------------------------------------------------------------------------------------------
    public delegate void OnCompletedEventHandler(object sender, OnCompletedEventArgs e);
    public class OnCompletedEventArgs : EventArgs
    {
        public object objectValue;

        public OnCompletedEventArgs(object objectValue)
        {
            this.objectValue = objectValue;
        }
    }
}